//
//  SAWCorrecTabCell.m
//  BestLearning
//
//  Created by edz on 2018/2/1.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "SAWCorrecTabCell.h"

@implementation SAWCorrecTabCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentView.backgroundColor = [UIColor whiteColor];
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
        [self setUI];
    }
    
    return self;
}
-(void)setUI
{
   _lab = [[UILabel alloc]init];
    [self.contentView addSubview:_lab];
    
    [_lab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(20);
        make.top.offset(10);
        make.height.offset(30);
    }];
    UIView *backView = [[UIView alloc]init];
    [self.contentView addSubview:backView];
    backView.backgroundColor = RGBColor(245, 245, 245);
    [backView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_lab.mas_bottom).offset(10);
        make.right.offset(-10);
        make.left.offset(10);
        make.height.offset(1);
    }];
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
